﻿@{
    ViewBag.Title = "Query";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using Common.BaseLibrary.Authorization
@using DepartmentWork.Model


<div class="page-header">
    <div class="pull-left">
        <ol class="breadcrumb visible-sm visible-md visible-lg">
            <li><a href="@Url.Action("Index", "Home", new { area = "" })"><i class="icon fa fa-home"></i>主页</a></li>
            <li class="active"><a href="#"><i class="fa fa-envelope"></i>查询</a></li>
        </ol>
    </div>
</div>







<form class="form-horizontal" role="form" action="@Url.Action("Query", "Query", new { area = "QueryArea" })" method="POST">
    <div class="form-group">
        <div style="height: 30px"></div>
        <div style="text-align: center">
            <input style="width: 50%; height: 35px" placeholder="输入查询关键字" type="text" name="selcetAll">

            <input type="submit" value="查询" class="btn btn-primary" />
        </div>

        <div style="height: 30px"></div>

        <div style="text-align: center;">
            <label for="sign">
                <input style="display: inline-block; vertical-align: middle; margin-bottom: 5px" type="checkbox" name="sign" id="sign" value="0" />科室工作</label>
            &nbsp;&nbsp; 
             <label for="sign1">
                 <input style="display: inline-block; vertical-align: middle; margin-bottom: 5px" type="checkbox" name="sign1" id="sign1" value="1" />运维工作</label>
            &nbsp;&nbsp; 
            <label for="sign2">
                <input style="display: inline-block; vertical-align: middle; margin-bottom: 5px" type="checkbox" name="sign2" id="sign2" value="2" />开发项目任务书</label>
            &nbsp;&nbsp; 
            <label for="sign3">
                <input style="display: inline-block; vertical-align: middle; margin-bottom: 5px" type="checkbox" name="sign3" id="sign3" value="3" />开发项目BUG</label>
            &nbsp;&nbsp; 
            <label for="sign4">
                <input style="display: inline-block; vertical-align: middle; margin-bottom: 5px" type="checkbox" name="sign4" id="sign4" value="4" />开发项目任务</label>
            &nbsp;&nbsp; 
            <label for="sign5">
                <input style="display: inline-block; vertical-align: middle; margin-bottom: 5px" type="checkbox" name="sign5" id="sign5" value="5" />项目管理工作记录</label>
            &nbsp;&nbsp; 
        </div>
    </div>
</form>




<div class="row">
    <div class="col-lg-12">@*宽度*@
        <div class="panel">@*背景颜色*@
            <div class="panel-body">
                <div class="tabs">
                    <div class="tab-content">
                        <div id="overview" class="tab-pane active">
                            <div class="panel-body">
                                <div class="table-responsive">
                                    <table class="table table-hover">
                                        <thead>
                                            <tr>
                                                <th style="text-align: center">来源</th>
                                                <th style="text-align: center">创建日期</th>
                                                <th style="text-align: center">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            @if (ViewBag.Work != null)
                                            {
                                                foreach (ProjectDeskWorkViewModel item in ViewBag.Work)
                                                {
                                                <tr>
                                                    <td style="text-align: center">@ViewBag.workk@item.DESKWORK_NAME</td>
                                                    <td style="text-align: center">@item.DESKWORK_CREATETIME.ToString("yyyy-MM-dd")</td>
                                                    <td style="text-align: center">
                                                        <a onclick="workid('@item.DESKWORK_ID')" data-toggle="modal" data-target="#work_C" style="color:blue">&nbsp;&nbsp;查看&nbsp;&nbsp;</a>
                                                    </td>
                                                </tr>
                                                }
                                            }
                                            @if (ViewBag.Record != null)
                                            {
                                                foreach (ProjectManintenanceAppopsViewModel item in ViewBag.Record)
                                                {
                                                <tr>
                                                    <td style="text-align: center">@ViewBag.Appops@item.appops_name</td>
                                                    <td style="text-align: center">@item.appops_time.ToString("yyyy-MM-dd")</td>
                                                    <td style="text-align: center">
                                                        <a onclick="appopsid('@item.appops_id')"data-toggle="modal" data-target="#appops_C" style="color:blue">&nbsp;&nbsp;查看&nbsp;&nbsp;</a>
                                                    </td>
                                                </tr>
                                                }
                                            }
                                            @if (ViewBag.taskbook != null)
                                            {
                                                foreach (ProjectTaskBookViewModel item in ViewBag.taskbook)
                                                {
                                                <tr>
                                                    <td style="text-align: center">@ViewBag.TaskBookk@item.TaskBookName</td>
                                                    <td style="text-align: center">@Convert.ToDateTime(item.TaskBookCreateTime).ToString("yyyy-MM-dd")</td>
                                                    <td style="text-align: center">
                                                        <a onclick="TaskBookid('@item.TaskBookId')"data-toggle="modal" data-target="#TaskBook_C" style="color:blue">&nbsp;&nbsp;查看&nbsp;&nbsp;</a>
                                                    </td>
                                                </tr>
                                                }
                                            }

                                            @if (ViewBag.Bug != null)
                                            {
                                                foreach (ProjectBugViewModel item in ViewBag.Bug)
                                                {
                                                <tr>
                                                    <td style="text-align: center">@ViewBag.bugg@item.BugName</td>
                                                    <td style="text-align: center">@Convert.ToDateTime(item.BugCreateTime).ToString("yyyy-MM-dd")</td>
                                                    <td style="text-align: center">
                                                        <a onclick="Bugid('@item.BugId')"data-toggle="modal" data-target="#Bug_C" style="color:blue">&nbsp;&nbsp;查看&nbsp;&nbsp;</a>
                                                    </td>
                                                </tr>
                                                }
                                            }
                                            @if (ViewBag.Task != null)
                                            {
                                                foreach (ProjectTaskViewModel item in ViewBag.Task)
                                                {
                                                <tr>
                                                    <td style="text-align: center">@ViewBag.Taskk@item.TaskName</td>
                                                    <td style="text-align: center">@Convert.ToDateTime(item.TaskCreateTime).ToString("yyyy-MM-dd")</td>
                                                    <td style="text-align: center">
                                                        <a onclick="Taskid('@item.TaskId')"data-toggle="modal" data-target="#Task_C" style="color:blue">&nbsp;&nbsp;查看&nbsp;&nbsp;</a>
                                                    </td>
                                                </tr>
                                                }
                                            }
                                            @if (ViewBag.WorkRecord != null)
                                            {
                                                foreach (ProjectWorkReocredInfoViewModel item in ViewBag.WorkRecord)
                                                {
                                                <tr>
                                                    <td style="text-align: center">@ViewBag.WorkRecordd@item.PROJECT_WORKRECORD_TITLE</td>
                                                    <td style="text-align: center">@item.PROJECT_WORKRECORD_CREATETIME.ToString("yyyy-MM-dd")</td>
                                                    <td style="text-align: center">
                                                        <a onclick="WorkRecordid('@item.PROJECT_WORKRECORD_ID')"data-toggle="modal" data-target="#WorkRecord_C" style="color:blue">&nbsp;&nbsp;查看&nbsp;&nbsp;</a>
                                                    </td>
                                                </tr>
                                                }
                                            }

                                        </tbody>
                                    </table>
                                </div>
                                <div class="bk-margin-5 btn-group" style="float: right">
                                    @Html.ShowPageNavigate((int)ViewData["pageIndexExecute"], (int)ViewData["pageSizeExecute"], (int)ViewData["totalExecute"])
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



@*科室工作*@
<script>
    function workid(bugId) {
        $.ajax({
            type: "POST",
            //url: "/KSManager/QueryArea/Query/WorkSeclet",
            url:'@Url.Action("WorkSeclet","Query",new{area="QueryArea"})',
            data: "roleId=" + bugId,
            error: function () { alert("服务器出错！"); },
            success: function (data) {

                $("#work_name").text(data["DESKWORK_NAME"]);
                $("#work_fuzeren").text(data["DESKWORK_PRINCIPAL"]);
                $("#work_faburen").text(data["DESKWORK_FOUNDER"]);
                $("#textarea_work").text(data["DESKWORK_DESCRIBE"]);
            }
        });
    }
</script>
<div class="modal fade" id="work_C" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times; </button>
                <h4 class="modal-title">目标来源：科室工作</h4>
            </div>
            <div class="modal-body" style="font-size: small">
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">工作名称：</label>
                    <div class="col-md-9">
                        <label id="work_name" style="width: 100%" class="col-md-3 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">负责人：</label>
                    <div class="col-md-9">
                        <label id="work_fuzeren" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">发布人：</label>
                    <div class="col-md-9">
                        <label id="work_faburen" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">工作内容描述：</label>
                    <div class="col-md-9">
                        <label id="textarea_work" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />


            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>

    </div>

</div>



@*运维工作*@
<script>
    function appopsid(bugId) {
        $.ajax({
            type: "POST",
            //url: "/KSManager/QueryArea/Query/AppopsSeclet",
            url:'@Url.Action("AppopsSeclet","Query",new{area="QueryArea"})',
            data: "roleId=" + bugId,
            error: function () { alert("服务器出错！"); },
            success: function (data) {

                $("#appops_name").text(data["appops_name"]);
                $("#appops_workrank").text(data["appops_workrank"]);
                $("#appops_rank").text(data["appops_rank"]);
                $("#appops_WorkLeader").text(data["appops_founder"]);
                $("#appops_department").text(data["appops_department"]);
                $("#appops_yewuleixing").text(data["appops_businesslinkman"]);
                $("#appops_businesstype").text(data["appops_businesstype"]);
                $("#appops_quantity").text(data["appops_quantity"]);
                $("#appops_frequency").text(data["appops_frequency"]);
                $("#appops_relevancename").text(data["appops_relevancename"]);
                $("#appops_relevanceway").text(data["appops_relevanceway"]);
                $("#appops_describe").text(data["appops_describe"]);
            }
        });
    }
</script>
<div class="modal fade" id="appops_C" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times; </button>
                <h4 class="modal-title">目标来源：运维项目</h4>
            </div>
            <div class="modal-body" style="font-size: small">
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">运维项目名称：</label>
                    <div class="col-md-9">
                        <label id="appops_name" style="width: 100%" class="col-md-3 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">关级/署级：：</label>
                    <div class="col-md-9">
                        <label id="appops_workrank" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">项目级别：：</label>
                    <div class="col-md-9">
                        <label id="appops_rank" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">项目负责人：</label>
                    <div class="col-md-9">
                        <label id="appops_WorkLeader" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">业务主管部门：</label>
                    <div class="col-md-9">
                        <label id="appops_department" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">业务类型：</label>
                    <div class="col-md-9">
                        <label id="appops_yewuleixing" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">用户人数：</label>
                    <div class="col-md-9">
                        <label id="appops_quantity" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">使用频率：</label>
                    <div class="col-md-9">
                        <label id="appops_frequency" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">关联系统名称：</label>
                    <div class="col-md-9">
                        <label id="appops_relevancename" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">系统关联方式：</label>
                    <div class="col-md-9">
                        <label id="appops_relevanceway" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">功能描述：</label>
                    <div class="col-md-9">
                        <label id="appops_describe" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal -->
</div>



@*开发项目任务书*@
<script>
    function TaskBookid(bugId) {
        $.ajax({
            type: "POST",
            //url: "/KSManager/QueryArea/Query/TaskBookSeclet",
            url:'@Url.Action("TaskBookSeclet","Query",new{area="QueryArea"})',
            data: "roleId=" + bugId,
            error: function () { alert("服务器出错！"); },
            success: function (data) {

                $("#lb_TaskBookInfo_Name").text(data["TaskBookName"]);
                $("#lb_TaskBookInfo_Creater").text(data["Creater"]);
                $("#lb_TaskBookInfo_Context").text(data["TaskBookContext"]);
                $("#lb_TaskBookInfo_CreateTime").text(data["TaskBookCreateTime"]);

            }
        });
    }
</script>
<div class="modal fade" id="TaskBook_C" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times; </button>
                <h4 class="modal-title">目标来源：项目任务书</h4>
            </div>
            <div class="modal-body" style="font-size: small">
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务书名称：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskBookInfo_Name" style="width: 100%" class="col-md-3 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">创建人：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskBookInfo_Creater" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务书详情：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskBookInfo_Context" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务书创建时间：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskBookInfo_CreateTime" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />


            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal -->
</div>



@*开发项目BUG*@
<script>
    function Bugid(bugId) {

        $.ajax({
            type: "POST",
            //url: "/KSManager/QueryArea/Query/BugSeclet",
            url:'@Url.Action("BugSeclet","Query",new{area="QueryArea"})',
            data: "bugId=" + bugId,
            error: function () { alert("服务器出错！"); },
            success: function (data) {

                $("#lb_BugName").text(data["BugName"]);
                $("#lb_BugCreater").text(data["Creater"]);
                $("#lb_BugHandToUser").text(data["HandToUser"]);
                $("#lb_BugContext").text(data["BugContext"]);
                $("#lb_BugDeadTime").text(data["BugDeadTime"]);

                if (data["Status"] == 0) {
                    $("#lb_BugStatus").text('任务进行中');
                }
                else if (data["Status"] == 1) {
                    $("#lb_BugStatus").text('任务进行中但任务超时');
                }
                else if (data["Status"] == 2) {
                    $("#lb_BugStatus").text('任务完成');
                }
                else if (data["Status"] == 3) {
                    $("#lb_BugStatus").text('任务超时完成');
                }

                if (data["Level"] == 0) {
                    $("#lb_BugLevel").text('低');
                }
                else if (data["Level"] == 1) {
                    $("#lb_BugLevel").text('中');
                }
                else if (data["Level"] == 2) {
                    $("#lb_BugLevel").text('高');
                }
            }
        });
    }
</script>
<div class="modal fade" id="Bug_C" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">目标来源：BUG </h4>
            </div>
            <div class="modal-body" style="font-size: small">
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">BUG名称：</label>
                    <div class="col-md-9">
                        <label id="lb_BugName" style="width: 100%" class="col-md-3 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">创建人：</label>
                    <div class="col-md-9">
                        <label id="lb_BugCreater" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">BUG处理人：</label>
                    <div class="col-md-9">
                        <label id="lb_BugHandToUser" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">BUG详情：</label>
                    <div class="col-md-9">
                        <label id="lb_BugContext" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">BUG级别：</label>
                    <div class="col-md-9">
                        <label id="lb_BugLevel" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">BUG截止日期：</label>
                    <div class="col-md-9">
                        <label id="lb_BugDeadTime" style="width: 100%" class="col-md-3 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">BUG状态：</label>
                    <div class="col-md-9">
                        <label id="lb_BugStatus" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>

                <hr />
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal -->
</div>





@*开发项目任务*@
<script>
    function Taskid(taskId) {
        $.ajax({
            type: "POST",
            //url: "/KSManager/QueryArea/Query/TaskSeclet",
            url:'@Url.Action("TaskSeclet","Query",new{area="QueryArea"})',
            data: "taskId=" + taskId,
            error: function () { alert("服务器出错！"); },
            success: function (data) {
                $("#lb_TaskName").text(data["TaskName"]);
                $("#lb_TaskCreater").text(data["Creater"]);
                $("#lb_TaskHandToUser").text(data["HandToUser"]);
                $("#lb_TaskContext").text(data["TaskContext"]);
                $("#lb_TaskCreateTime").text(data["TaskCreateTime"]);
                $("#lb_TaskHour").text(data["Hour"]);
                if (data["Status"] == 0) {
                    $("#lb_TaskStatus").text('任务进行中');
                }
                else if (data["Status"] == 1) {
                    $("#lb_TaskStatus").text('任务进行中但任务超时');
                }
                else if (data["Status"] == 2) {
                    $("#lb_TaskStatus").text('任务完成');
                }
                else if (data["Status"] == 3) {
                    $("#lb_TaskStatus").text('任务超时完成');
                }

                if (data["Level"] == 0) {
                    $("#lb_TaskLevel").text('低');
                }
                else if (data["Level"] == 1) {
                    $("#lb_TaskLevel").text('中');
                }
                else if (data["Level"] == 2) {
                    $("#lb_TaskLevel").text('高');
                }
            }
        });
    }
</script>
<div class="modal fade" id="Task_C" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">目标来源：开发项目任务</h4>
            </div>
            <div class="modal-body" style="font-size: small">
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务名称：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskName" style="width: 100%" class="col-md-3 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">创建人：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskCreater" style="width: 100%" class="col-md-8 control-label" for="text-input">任务01</label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务分配人：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskHandToUser" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务级别：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskLevel" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务状态：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskStatus" style="width: 100%" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务详情：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskContext" style="width: 100%" class="col-md-8 control-label" for="text-input">任务书01</label>
                    </div>
                </div>

                <hr />


                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务所需时间：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskHour" class="col-md-8 control-label"></label>
                    </div>
                </div>
                <br />
                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">任务创建时间：</label>
                    <div class="col-md-9">
                        <label id="lb_TaskCreateTime" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />


                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>





<script>
    function WorkRecordid(workReocredId) {
        $.ajax({
            type: "POST",
            //url: "/KSManager/QueryArea/Query/WorkReocredSelect",
            url:'@Url.Action("WorkReocredSelect","Query",new{area="QueryArea"})',
            data: "workReocredId=" + workReocredId,
            error: function () { alert("服务器出错！"); },
            success: function (data) {
                $("#lb_WorkReocredTitle").text(data["PROJECT_WORKRECORD_TITLE"]);
                $("#lb_WorkReocredCreater").text(data["PROJECT_WORKRECORD_CREATERNAME"]);
                $("#lb_WorkReocredContent").text(data["PROJECT_WORKRECORD_CONTENT"]);
                if (data["LEVEL"] == 0) {
                    $("#lb_WorkReocredLevel").text("普通");
                } else {
                    $("#lb_WorkReocredLevel").text("重要");
                }
            }
        });
    }
</script>
<div class="modal fade" id="WorkRecord_C" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">工作记录详情
                </h4>
            </div>
            <div class="modal-body" style="font-size: small">
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">工作记录主题：</label>
                    <div class="col-md-9">
                        <label id="lb_WorkReocredTitle" class="col-md-3 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">工作记录创建人：</label>
                    <div class="col-md-9">
                        <label id="lb_WorkReocredCreater" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />

                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">工作记录内容：</label>
                    <div class="col-md-9">
                        <label id="lb_WorkReocredContent" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <label class="col-md-3 control-label" for="text-input">工作记录级别：</label>
                    <div class="col-md-9">
                        <label id="lb_WorkReocredLevel" class="col-md-8 control-label" for="text-input"></label>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>
    </div>
</div>

